<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>position-demo</title>
    <style>
        *{
            margin: 0;
            height: 0;
        }
        .w{
            width: 1200px;
            height: 300px;
            background-color: #eee;
            margin: 30px auto;
        }
        .father{
            top: 20px;
            left: 20px;
            width: 270px;
            height: 152px;
            position: relative;
            border-radius:8px;
            overflow: hidden;
        }
        .course{
            width: 270px;
            height: 150px;
        }
        .icon{
            width: 60px;
            height: 25px;
            position: absolute;
            top: 0;
            right: 0;
        }

    </style>
</head>
<body>
    <div class="w">
        <div class="father">
            <img class="course" src="images/course-1.png">
            <img class="icon" src="images/icon-new.png">
        </div>
    </div>
</body>
</html>